"""
for 临时变量 in range(循环次数):
    循环体
注意事项: 循环是从 0 开始的
"""
result = 0
for i in range(101):
    result = result + i
    print(i)

    # i = i + 1

print(f"1~100累加和计算结果为: {result}")